// 金额格式化
export function moneyType(num: number) {
    let arr = (num + '').split('');
    arr.reverse();
    for (let i = 0, len = arr.length - 1; i < len; i++) {
        if ((i + 1) % 3 === 0) {
            arr[i] = ',' + arr[i];
        }
    }
    arr.reverse();
    return arr.join('');
}
